<?php
session_start();
include_once("../../service/userService.php");

$currentPassword = md5($_POST["pass"]);
$userInfo = mysql_fetch_array(findUserById($_SESSION['usernameAdmin'][0]));
$storedPassword = $userInfo["USER_PASSWORD"];

if($currentPassword == $storedPassword) echo 1;
else 0;
?>